﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Myapplication._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        th {
            text-align:center;
        }
        td{
            width:200px;
            text-align:center;
        }
        </style>
   

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" OnRowUpdating="GridView1_RowUpdating" OnPageIndexChanging="GridView1_PageIndexChanging" AllowPaging="true" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowCommand="GridView1_RowCommand">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="id"/>
            <asp:BoundField DataField="TaskName" HeaderText="任务名称"/>
            <asp:BoundField DataField="TaskContent" HeaderText="任务内容"/>
            <asp:BoundField DataField="TaskStatus" HeaderText="状态"/>
            <asp:BoundField DataField="Remarks" HeaderText="备注"/>
            <asp:ButtonField HeaderText="详情" ButtonType="Link" Text="详情" CommandName="Detail"/>
            <asp:CommandField ButtonType="Button" ShowDeleteButton="True" ShowEditButton="True" />
        </Columns>
    </asp:GridView>
    <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click"/>

   

</asp:Content>
